package com.gitee.empty_null.core.utils;

import static com.gitee.empty_null.core.constants.StringPool.colon;

/**
 * @author xuhainan
 * @date 2023/8/25 11:08
 * @region hefei
 */
public class StringFormatUtil {

    public static String endColon(String str) {
        return OptionalUtil.getTarget(str, str + colon, s -> !s.endsWith(colon));
    }

}
